home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9900 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 78 | 2e 6e 65 74 63 6f 6d 2e |Path: ix|.netcom.|
|00000010| 63 6f 6d 21 6e 65 77 73 | 0a 46 72 6f 6d 3a 20 48 |com!news|.From: H|
|00000020| 65 6e 72 79 20 43 72 6f | 73 73 20 3c 68 63 72 6f |enry Cro|ss <hcro|
|00000030| 73 73 40 69 78 2e 6e 65 | 74 63 6f 6d 2e 63 6f 6d |ss@ix.ne|tcom.com|
|00000040| 3e 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 63 6f |>.Newsgr|oups: co|
|00000050| 6d 70 2e 6c 61 6e 67 2e | 63 0a 53 75 62 6a 65 63 |mp.lang.|c.Subjec|
|00000060| 74 3a 20 52 65 3a 20 50 | 72 6f 62 6c 65 6d 20 77 |t: Re: P|roblem w|
|00000070| 69 74 68 20 57 61 74 63 | 6f 6d 20 43 2b 2b 20 31 |ith Watc|om C++ 1|
|00000080| 30 2e 35 0a 44 61 74 65 | 3a 20 57 65 64 2c 20 31 |0.5.Date|: Wed, 1|
|00000090| 33 20 4d 61 72 20 31 39 | 39 36 20 31 39 3a 35 36 |3 Mar 19|96 19:56|
|000000a0| 3a 30 38 20 2d 30 38 30 | 30 0a 4f 72 67 61 6e 69 |:08 -080|0.Organi|
|000000b0| 7a 61 74 69 6f 6e 3a 20 | 69 35 38 36 20 42 6f 78 |zation: |i586 Box|
|000000c0| 20 40 49 72 76 69 6e 65 | 2c 20 43 61 2e 0a 4d 65 | @Irvine|, Ca..Me|
|000000d0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 33 31 34 37 39 |ssage-ID|: <31479|
|000000e0| 38 44 38 2e 46 34 32 40 | 69 78 2e 6e 65 74 63 6f |8D8.F42@|ix.netco|
|000000f0| 6d 2e 63 6f 6d 3e 0a 52 | 65 66 65 72 65 6e 63 65 |m.com>.R|eference|
|00000100| 73 3a 20 3c 33 31 34 32 | 36 41 43 42 2e 36 41 41 |s: <3142|6ACB.6AA|
|00000110| 31 40 73 63 73 6e 2e 6e | 65 74 3e 0a 4e 4e 54 50 |1@scsn.n|et>.NNTP|
|00000120| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 69 |-Posting|-Host: i|
|00000130| 72 76 2d 63 61 31 32 2d | 32 33 2e 69 78 2e 6e 65 |rv-ca12-|23.ix.ne|
|00000140| 74 63 6f 6d 2e 63 6f 6d | 0a 4d 69 6d 65 2d 56 65 |tcom.com|.Mime-Ve|
|00000150| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|00000160| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|00000170| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|00000180| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|00000190| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|000001a0| 20 37 62 69 74 0a 58 2d | 4e 45 54 43 4f 4d 2d 44 | 7bit.X-|NETCOM-D|
|000001b0| 61 74 65 3a 20 57 65 64 | 20 4d 61 72 20 31 33 20 |ate: Wed| Mar 13 |
|000001c0| 20 39 3a 35 37 3a 32 32 | 20 50 4d 20 43 53 54 20 | 9:57:22| PM CST |
|000001d0| 31 39 39 36 0a 58 2d 4d | 61 69 6c 65 72 3a 20 4d |1996.X-M|ailer: M|
|000001e0| 6f 7a 69 6c 6c 61 20 32 | 2e 30 20 28 57 69 6e 39 |ozilla 2|.0 (Win9|
|000001f0| 35 3b 20 49 29 0a 54 6f | 3a 20 4d 69 63 68 61 65 |5; I).To|: Michae|
|00000200| 6c 20 3c 6d 64 6f 72 73 | 65 79 40 73 63 73 6e 2e |l <mdors|ey@scsn.|
|00000210| 6e 65 74 3e 0a 0a 4d 69 | 63 68 61 65 6c 20 77 72 |net>..Mi|chael wr|
|00000220| 6f 74 65 3a 0a 3e 20 0a | 3e 20 49 27 6d 20 68 61 |ote:.> .|> I'm ha|
|00000230| 76 69 6e 67 20 61 20 72 | 61 74 68 65 72 20 73 74 |ving a r|ather st|
|00000240| 72 61 6e 67 65 20 70 72 | 6f 62 6c 65 6d 20 77 69 |range pr|oblem wi|
|00000250| 74 68 20 57 61 74 63 6f | 6d 20 43 2e 20 20 57 68 |th Watco|m C. Wh|
|00000260| 65 6e 20 75 73 69 6e 67 | 20 66 75 6e 63 74 69 6f |en using| functio|
|00000270| 6e 73 0a 3e 20 74 68 61 | 74 20 6f 75 74 70 75 74 |ns.> tha|t output|
|00000280| 20 74 6f 20 73 74 64 6f | 75 74 20 28 69 65 20 70 | to stdo|ut (ie p|
|00000290| 72 69 6e 74 66 28 29 29 | 2c 20 69 74 20 69 73 20 |rintf())|, it is |
|000002a0| 6e 6f 74 20 66 6c 75 73 | 68 69 6e 67 20 74 6f 20 |not flus|hing to |
|000002b0| 74 68 65 20 73 63 72 65 | 65 6e 0a 3e 20 75 6e 74 |the scre|en.> unt|
|000002c0| 69 6c 20 61 20 6e 65 77 | 6c 69 6e 65 20 69 73 20 |il a new|line is |
|000002d0| 73 65 6e 74 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |sent. F|or examp|
|000002e0| 6c 65 3a 0a 3e 20 0a 3e | 20 76 6f 69 64 20 6d 61 |le:.> .>| void ma|
|000002f0| 69 6e 28 76 6f 69 64 29 | 0a 3e 20 7b 0a 3e 20 20 |in(void)|.> {.> |
|00000300| 20 70 72 69 6e 74 66 28 | 22 48 69 74 20 59 20 66 | printf(|"Hit Y f|
|00000310| 6f 72 20 79 65 73 2c 20 | 4e 20 66 6f 72 20 6e 6f |or yes, |N for no|
|00000320| 3a 20 22 29 3b 0a 3e 20 | 20 20 79 6e 28 29 3b 0a |: ");.> | yn();.|
|00000330| 3e 20 7d 0a 3e 20 0a 3e | 20 79 6e 28 29 20 67 65 |> }.> .>| yn() ge|
|00000340| 74 73 20 74 68 65 20 6b | 65 79 20 73 74 72 6f 6b |ts the k|ey strok|
|00000350| 65 20 61 6e 64 20 70 72 | 69 6e 74 73 20 79 65 73 |e and pr|ints yes|
|00000360| 20 6f 72 20 6e 6f 2e 20 | 20 54 68 65 20 70 72 6f | or no. | The pro|
|00000370| 62 6c 65 6d 20 69 73 20 | 74 68 61 74 20 74 68 65 |blem is |that the|
|00000380| 0a 3e 20 73 74 61 74 65 | 6d 65 6e 74 20 77 69 6c |.> state|ment wil|
|00000390| 6c 20 6e 6f 74 20 62 65 | 20 70 72 69 6e 74 65 64 |l not be| printed|
|000003a0| 20 75 6e 74 69 6c 20 74 | 68 65 20 6e 65 77 6c 69 | until t|he newli|
|000003b0| 6e 65 20 66 72 6f 6d 20 | 74 68 65 20 61 6e 73 77 |ne from |the answ|
|000003c0| 65 72 20 69 73 20 73 65 | 6e 74 2e 0a 3e 20 4b 69 |er is se|nt..> Ki|
|000003d0| 6e 64 20 6f 66 20 68 61 | 72 64 20 74 6f 20 61 6e |nd of ha|rd to an|
|000003e0| 73 77 65 72 20 61 20 71 | 75 65 73 74 69 6f 6e 20 |swer a q|uestion |
|000003f0| 69 66 20 79 6f 75 20 63 | 61 6e 27 74 20 73 65 65 |if you c|an't see|
|00000400| 20 69 74 2e 20 20 49 20 | 63 61 6e 20 67 65 74 20 | it. I |can get |
|00000410| 61 72 6f 75 6e 64 0a 3e | 20 69 74 20 62 79 20 66 |around.>| it by f|
|00000420| 6c 75 73 68 69 6e 67 20 | 73 74 64 6f 75 74 20 61 |lushing |stdout a|
|00000430| 66 74 65 72 20 70 72 69 | 6e 74 66 28 29 2c 20 62 |fter pri|ntf(), b|
|00000440| 75 74 20 49 20 77 61 73 | 20 6b 69 6e 64 20 6f 66 |ut I was| kind of|
|00000450| 20 68 6f 70 69 6e 67 20 | 74 68 65 72 65 20 77 61 | hoping |there wa|
|00000460| 73 0a 3e 20 73 6f 6d 65 | 20 74 79 70 65 20 6f 66 |s.> some| type of|
|00000470| 20 76 61 72 69 61 62 6c | 65 20 49 20 63 6f 75 6c | variabl|e I coul|
|00000480| 64 20 73 65 74 20 74 6f | 20 74 75 72 6e 20 6f 66 |d set to| turn of|
|00000490| 66 20 62 75 66 66 65 72 | 69 6e 67 20 6f 66 20 73 |f buffer|ing of s|
|000004a0| 74 64 6f 75 74 2e 0a 3e | 20 0a 0a 20 20 49 20 68 |tdout..>| .. I h|
|000004b0| 61 76 65 20 61 20 72 61 | 74 68 65 72 20 68 75 6d |ave a ra|ther hum|
|000004c0| 65 72 6f 75 73 20 61 6e | 65 63 64 6f 74 65 20 74 |erous an|ecdote t|
|000004d0| 68 61 74 20 6f 63 63 75 | 72 65 64 20 74 6f 20 6d |hat occu|red to m|
|000004e0| 65 20 70 65 72 73 6f 6e | 61 6c 6c 79 2e 20 49 20 |e person|ally. I |
|000004f0| 75 73 65 64 0a 20 4d 53 | 56 43 20 74 6f 20 77 72 |used. MS|VC to wr|
|00000500| 69 74 65 20 61 20 44 4f | 53 20 70 72 6f 67 72 61 |ite a DO|S progra|
|00000510| 6d 20 74 68 61 74 20 49 | 20 6c 61 74 65 72 20 63 |m that I| later c|
|00000520| 6f 6e 76 65 72 74 65 64 | 20 74 6f 20 57 61 74 63 |onverted| to Watc|
|00000530| 6f 6d 20 31 30 2e 30 0a | 20 54 68 65 20 4d 69 63 |om 10.0.| The Mic|
|00000540| 72 6f 53 6f 66 74 20 63 | 6f 6d 70 69 6c 65 72 20 |roSoft c|ompiler |
|00000550| 64 6f 65 73 6e 74 20 68 | 61 76 65 20 74 68 69 73 |doesnt h|ave this|
|00000560| 20 22 73 69 64 65 2d 65 | 66 66 65 63 74 22 20 49 | "side-e|ffect" I|
|00000570| 20 75 73 65 20 74 68 65 | 20 70 72 69 6e 66 28 29 | use the| prinf()|
|00000580| 0a 20 66 75 6e 63 74 69 | 6f 6e 20 69 6e 20 61 20 |. functi|on in a |
|00000590| 76 65 72 79 20 73 6d 61 | 6c 6c 20 66 75 6e 63 74 |very sma|ll funct|
|000005a0| 69 6f 6e 20 6e 61 6d 65 | 64 20 42 65 65 70 28 29 |ion name|d Beep()|
|000005b0| 20 61 73 20 69 6e 20 70 | 72 69 6e 74 66 28 22 25 | as in p|rintf("%|
|000005c0| 63 22 2c 20 37 29 3b 0a | 20 57 68 65 6e 20 70 65 |c", 7);.| When pe|
|000005d0| 6f 70 6c 65 20 72 61 6e | 20 74 68 65 20 41 75 74 |ople ran| the Aut|
|000005e0| 6f 2d 56 61 6c 69 64 61 | 74 69 6f 6e 20 66 75 6e |o-Valida|tion fun|
|000005f0| 63 74 69 6f 6e 20 61 6e | 64 20 65 72 72 6f 72 73 |ction an|d errors|
|00000600| 20 6f 63 63 75 72 72 65 | 64 20 74 68 65 0a 20 70 | occurre|d the. p|
|00000610| 72 6f 67 72 61 6d 20 77 | 61 73 20 73 75 70 70 6f |rogram w|as suppo|
|00000620| 73 65 64 20 74 6f 20 42 | 65 65 70 28 29 2e 20 57 |sed to B|eep(). W|
|00000630| 65 6c 6c 20 69 74 20 64 | 69 64 20 73 6f 72 74 20 |ell it d|id sort |
|00000640| 6f 66 2c 20 6f 6e 6c 79 | 20 70 72 6f 62 6c 65 6d |of, only| problem|
|00000650| 20 77 61 73 0a 20 69 74 | 20 64 69 64 6e 27 74 20 | was. it| didn't |
|00000660| 6f 63 63 75 72 20 75 6e | 74 69 6c 20 74 68 65 79 |occur un|til they|
|00000670| 20 77 65 6e 74 20 74 6f | 20 65 78 69 74 20 74 68 | went to| exit th|
|00000680| 65 20 70 72 6f 67 72 61 | 6d 20 61 6e 64 20 74 68 |e progra|m and th|
|00000690| 65 20 62 75 66 66 65 72 | 20 77 61 73 0a 20 66 6c |e buffer| was. fl|
|000006a0| 75 73 68 65 64 2e 20 3a | 29 20 28 49 20 77 61 73 |ushed. :|) (I was|
|000006b0| 20 6e 6f 74 20 61 6d 75 | 73 65 64 2e 29 0a 0a 72 | not amu|sed.)..r|
|000006c0| 65 67 61 72 64 73 2c 0a | 48 2e 43 72 6f 73 73 0a |egards,.|H.Cross.|
+--------+-------------------------+-------------------------+--------+--------+